/**
 * Class: Dot2D
 *
 * Purpose: 
 *
 * Created: Jan 27, 2010 @ 9:37:10 AM
 * @author Ken Scott
 */
package org.openfantasia.ps.shape;

import org.openfantasia.ps.particle.Particle;
import org.openfantasia.ui.PFrame;
import org.openfantasia.util.math.geometry.DEdge;

public class Segment extends Shape {

	private DEdge edge;


	public Segment(PFrame frame) {
		super(frame);
	}


	public Segment(PFrame frame, DEdge edge) {
		super(frame);
		this.edge = edge;
	}


	public void drawShape(Particle particle) {
		frame.line(edge.getP0(), edge.getP1());
	}

}